Skip to content

Introduce scalaShadowing package #1617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 20, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Oct 20, 2016

The scalaShadowing package is used to safely modify classes and
objects in scala so that they can be used from dotty. They will
be visible as members of the scala package, replacing any objects
or classes with the same name. But their binary artifacts are
in scalaShadowing so they don't clash with the same-named scala
members at runtime.

Review by @nicolasstucki

The `scalaShadowing` package is used to safely modify classes and
objects in scala so that they can be used from dotty. They will
be visible as members of the `scala` package, replacing any objects
or classes with the same name. But their binary artifacts are
in `scalaShadowing` so they don't clash with the same-named `scala`
members at runtime.
@nicolasstucki
Copy link
Contributor

LGTM and it fixed the issue in #1479.

- Remove unused classes Pair and Singleton.
- Move classes from dotty.annotation.internal
  to scala.annotation.internal.

The only classes remaining now are in dotty.runtime
and DottyPredef. We should probably do something about them
as well at some point.
@nicolasstucki
Copy link
Contributor

I assume that we could also shadow scala.Predef and merge it with dotty.Predef.

@odersky odersky merged commit 6070cce into scala:master Oct 20, 2016
@allanrenucci allanrenucci deleted the change-shadow-scala branch December 14, 2017 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants